//
//  AdoptDetail.h
//  PigMarket
//
//  Created by mac on 2019/4/28.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

@class AdoptDetailList;
typedef NS_ENUM(NSInteger,HeadeImageType) {
    HeadeImageTypeImage = 1,
    HeadeImageTypeVideo = 2
};
typedef NS_ENUM(NSInteger, TrusteePriceType) {
    TrusteePriceTypeInitial = 0,//初始价格
    TrusteePriceTypeStage = 1,  //阶段价格
    TrusteePriceTypeAll = 2     //总包
};
@interface AdoptDetail : NSObject
/**
 pigImgId
 */
@property (nonatomic , strong)  NSNumber *pigImgId;
/**
 pigId
 */
@property (nonatomic , strong) NSNumber *pigId;
/**
 素材url
 */
@property (nonatomic , copy) NSString *materialName;
/**
 素材类型：1图片2视频
 */
@property (nonatomic , strong) NSNumber *materialType;

//套餐:第一条数据是小猪的价格
/**
 套餐类型：0初始价格1阶段价格2总包
 */
@property (nonatomic , copy) NSString *type;
/**
 套餐价格
 */
@property (nonatomic , copy) NSString *money;
/**
 套餐名称
 */
@property (nonatomic , copy) NSString *name;
/**
 套餐周期
 */
@property (nonatomic , strong) NSNumber *day;
/**
 套餐明细id
 */
@property (nonatomic , strong) NSNumber *trustDetailId;
/**
 优惠多少钱,如果是0，不用显示
 */
@property (nonatomic , copy) NSString *discountPrice;
//---------------自定义-------
/**
 标记套餐选中状态
 */
@property (nonatomic , assign) BOOL isSelect;

@end


@interface AdoptDetailList : NSObject
/**
 pigId
 */
@property (nonatomic , strong)  NSNumber *pigId;
/**
 varietiesId
 */
@property (nonatomic , strong) NSNumber *varietiesId;
/**
 出生日期
 */
@property (nonatomic , copy) NSString *birthDate;
/**
 出栏日
 */
@property (nonatomic , copy) NSString *expectOutDate;
/**
 体重kg(double类型)
 */
@property (nonatomic) double weight;
/**
 猪场id
 */
@property (nonatomic , strong) NSNumber *pigFieldId;
/**
 喂养方案
 */
@property (nonatomic , copy) NSString *feedPlan;
/**
 个性
 */
@property (nonatomic , copy) NSString *personality;
/**
 createTime
 */
@property (nonatomic , copy) NSString *createTime;
/**
 pigNum
 */
@property (nonatomic , copy) NSString *pigNum;
/**
 称重日
 */
@property (nonatomic , copy) NSString *weighDate;
/**
 品种名称
 */
@property (nonatomic , copy) NSString *varietiesName;
/**
 单价(元/500g)
 */
@property (nonatomic , copy) NSString *unitPrice;
/**
 日龄
 */
@property (nonatomic , strong) NSNumber *age;
/**
 周期
 */
@property (nonatomic , strong) NSNumber *cycle;
/**
 养殖基地
 */
@property (nonatomic , copy) NSString *pigField;
/**
 分享小猪链接(H5)
 */
@property (nonatomic , copy) NSString *shareLinkUrl;
/**
 小猪头像
 */
@property (nonatomic , copy) NSString *headImg;
/**
 素材
 */
@property (nonatomic , strong) NSArray<AdoptDetail *> *maters;
/**
 套餐:第一条数据是小猪的价格
 */
@property (nonatomic , strong) NSArray<AdoptDetail *> *stagePrices;
@end


